package demo.echarts.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * 测试数据
 */
public class ConstantData4 {

    public  static  List<HashMap<String,Object>> dataPie = new ArrayList<HashMap<String,Object>>();

    static {
        dataPie.add(setObj("越限-受迫交易","0","0.00","0"));
        dataPie.add(setObj("少出清-受迫交易","0","0.00","0"));
        dataPie.add(setObj("计划交易","1608.02","98.83","1608.02"));
        dataPie.add(setObj("多出清-受迫交易","19.05","1.17","19.05"));
    }


    public static HashMap<String,Object> setObj(String name,String value,String proportion,String realValue){
        HashMap<String,Object> data = new HashMap<String,Object>();
        data.put("name",name);
        data.put("value",value);
        data.put("proportion",proportion);
        data.put("realValue",realValue);
        return data;
    }


}
